package com.hui10.mediaplayer.adapter

import android.content.Context
import com.hui10.mediaplayer.base.BaseListAdapter
import com.hui10.mediaplayer.model.YueDanBean
import com.hui10.mediaplayer.widget.YueDanItemView

/**
 * Author: Created by lucus on 2019/5/30.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 */
class YueDanAdapter : BaseListAdapter<YueDanBean.PlayListsBean, YueDanItemView>() {

    override fun refreshItemViewData(itemView: YueDanItemView, itemBean: YueDanBean.PlayListsBean) {
        itemView.setData(itemBean)
    }

    override fun getItemView(context: Context?): YueDanItemView = YueDanItemView(context)

}